# $Id: PKGBUILD 83922 2013-02-06 14:55:54Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=rogue
pkgver=5.4.4
pkgrel=3
pkgdesc="The original dungeon crawl game."
arch=('i686' 'x86_64')
url="http://rogue.rogueforge.net/rogue-5-4/"
license=('custom')
depends=('ncurses')
provides=('rouge')  # so the illiterate can find it in searches too
#source=(http://rogue.rogueforge.net/files/rogue5.4/$pkgname$pkgver-src.tar.gz)
source=(http://www.sourcefiles.org/Games/Role_Play/$pkgname$pkgver-src.tar.gz)
md5sums=('033288f46444b06814c81ea69d96e075')

build() {
  cd "$srcdir/$pkgname$pkgver"
  ./configure
  make
}

package() {
  cd "$srcdir/$pkgname$pkgver"
  install -Dm755 rogue "$pkgdir/usr/bin/rogue"
  install -Dm644 rogue.6 "$pkgdir/usr/share/man/man6/rogue.6"
  install -Dm644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE.TXT"
}

